import Vue from 'vue'
import VueI18n from 'vue-i18n'
import enUS from './en-US'
import zhCN from './zh-CN'

Vue.use(VueI18n)

const i18n = new VueI18n({
  locale: uni.getStorageSync('language') || 'zh-CN', // 默认语言
  messages: {
    'en-US': enUS,
    'zh-CN': zhCN
  },
  silentTranslationWarn: true
})

export default i18n 